from django.conf.urls import url
from resources.views import *
from django.views.decorators.csrf import csrf_exempt
urlpatterns = [
    url(r'^idc/list',IdcListView.as_view(),name='idc_list'),
    url(r'^idc/add',IdcAddView.as_view(),name='idc_add'),
    url(r'^idc/update',IdcUpdateView.as_view(),name='idc_update'),
    url(r'^idc/delete',IdcDeleteView.as_view(),name='idc_delete'),
    url(r'^serveruser/list',ServerUserListView.as_view(),name='serveruser_list'),
    url(r'^serveruser/add',ServerUserAddView.as_view(),name='serveruser_add'),
    url(r'^serveruser/update',ServerUserUpdateView.as_view(),name='serveruser_update'),
    url(r'^serveruser/delete',ServerUserDeleteView.as_view(),name='serveruser_delete'),
    url(r'^server/list',ServerListView.as_view(),name='server_list'),
    url(r'^server/data_api',csrf_exempt(ServerDataApiView.as_view())),
]